var mongoose = require('mongoose')

// 连接数据库
mongoose.connect('mongodb://localhost/test', {useNewUrlParser: true});

module.exports = mongoose;